import request from '@/config/axios'

// 删除水费支付
export const deleteWaterPayOrder = async (id: number) => {
    return await request.delete({
        url: '/zwsj/water-pay-order/delete?id=' + id,
        method: 'delete'
    })
}

// 获得水费支付分页
export const getWaterPayOrderPage = async (params: any) => {
    return await request.get({
        url: '/zwsj/water-pay-order/page',
        params: params
    })
}

//导出
export const exportWaterPayOrder = async (params: any) => {
    return request.download({url: '/zwsj/water-pay-order/export', params})
}

// 获取银联支付结果
export const getUnionMiniPayOrderInfo = async (waterPayOrderId: number) => {
    return await request.get({
        url: `/zwsj/water-pay-order/union/pay/order/info?waterPayOrderId=` + waterPayOrderId
    })
}

// 获得水表已完成支付的支付列表
export const getPayedPageOfMeter = async (params: any) => {
    return await request.get({
        url: `/zwsj/water/recharge/query`,
        params: params
    })
}

// 用水量查询
export const getUseWater = async (params: any) => {
  return await request.get({
    url: `/zwsj/water/use/power/query`,
    params: params
  })
}
